using System.Globalization;
using System.Windows.Controls;

namespace Project
{
    public class BlankValidRule : ValidationRule
    {


        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            if (string.IsNullOrWhiteSpace((string)value))
                return new ValidationResult(false, "El campo no puede estar en blanco");
            return new ValidationResult(true, null);
        }
    }
}